package com.atguigu.demo.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

@Data
public class DemoData {

    //设置excel表头名称
    @ExcelProperty(value="学生编号",index=0)//该注解是设置表头对应的名称
    private Integer sno;

    @ExcelProperty(value="学生姓名",index=1)
    private String sname;
}
